package com.imooc.service;

import com.imooc.common.dto.OrderDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface OrderService {

    OrderDTO create(OrderDTO record);

    OrderDTO findOne(String orderId);

    Page<OrderDTO> findByBuyerOpenid(String buyerOpenid, Pageable pageable);

    Page<OrderDTO> findAll(Pageable pageable);

    OrderDTO cancel(OrderDTO record);

    OrderDTO finish(OrderDTO record);

    OrderDTO paid(OrderDTO record);
}
